package com.redBook.mapper;

import com.redBook.entity.NotePicture;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface NotePictureMapper {
    @Select("select * from note_picture where note_id = #{noteId}")
    List<NotePicture> findByNoteId(Long noteId);

    void savePicture(@Param("pathList") List<String> pathList, @Param("noteId") Long noteId, @Param("height") List<Long> height, @Param("width") List<Long> width);
}
